package 功能实现.管理员角色权限三级.service;

import cn.tedu.autoshow.commons.pojo.vo.PageData;
import cn.tedu.autoshow.passport.pojo.param.AdminAddNewParam;
import cn.tedu.autoshow.passport.pojo.param.AdminLoginInfoParam;
import cn.tedu.autoshow.passport.pojo.param.AdminUpdateParam;
import cn.tedu.autoshow.passport.pojo.vo.AdminListItemVO;
import cn.tedu.autoshow.passport.pojo.vo.AdminStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IAdminService {

    String ENABLE_TEXT[] = {"禁用", "启用"};

    String login(AdminLoginInfoParam adminLoginInfoParam);

    void addNew(AdminAddNewParam adminAddNewParam);

    void deleteById(Long id);

    void updateInfoById(Long id, AdminUpdateParam adminUpdateParam);

    void updatePwdById(Long id, String password);

    void setEnable(Long id);

    void setDisable(Long id);

    AdminStandardVO getStandardById(Long id);

    List<Long> roleIdListByAdminId(Long adminId);

    PageData<AdminListItemVO> list(Integer pageNum);

    PageData<AdminListItemVO> list(Integer pageNum, Integer pageSize);
}
